-- GENERATED SPELL FOR [Sentinel Infiltrator] --


function spell0_16333(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16333', 528, 1)
end

function spell1_16333(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(12540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16333', 4332, 1)
end

function Sorts_16333(pUnit, Event)
local choix_sorts_16333 = math.random(0, 1)
if choix_sorts_16333 == 0 then
pUnit:RegisterEvent('spell0_16333', 1, 1)
end
if choix_sorts_16333 == 1 then
pUnit:RegisterEvent('spell1_16333', 1, 1)
end
end

function mob16333_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16333', math.random(1500, 3000), 1)
end

function mob16333_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16333_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16333_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16333, 1, 'mob16333_Action')
RegisterUnitEvent(16333, 2, 'mob16333_Leave')
RegisterUnitEvent(16333, 3, 'mob16333_Kill')
RegisterUnitEvent(16333, 4, 'mob16333_Die')
